CC = gcc   
CXX = g++   
CFLAGS = -Wall -pipe -D_DEBUG -DDEBUG -g -O0   
LDFLAGS = -lstdc++   
RM = /bin/rm -f   
#MODULE_INC = -I../curl-7.21.3/include -I../boost_1_45_0 -I./   
#MODULE_LIB = -L../boost_1_45_0/stage/lib   

MODULE_INC = -I./   
#MODULE_LIB = -L../boost_1_45_0/stage/lib   


CFLAGS  += $(MODULE_INC)   
LDFLAGS += $(MODULE_LIB)   


#LIBOBJS = ec_rw_main.o ec_read_write.o   
TARGET = ec_rw_main


all: $(TARGET)   

ec_rw_main: ec_rw_main.o  ec_read_write.o
	$(CXX) -o $@ $^ $(LDFLAGS)   

%.o : %.c   
	$(CC) $(CFLAGS) -c $^ -o $@    

%.o : %.cpp   
	$(CC) $(CFLAGS) -c $^ -o $@    

clean:
	rm -f $(TARGET)
	rm -f *.o   



